package com.heima.wemedia.controller.v1;

import com.heima.apis.article.IArticleClient;
import com.heima.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.utils.WmThreadLocalUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private IArticleClient iArticleClient;

    @GetMapping("/test")
    public WmUser get(){
        return WmThreadLocalUtil.get();
    }

//    @PostMapping
//    public ResponseResult get1(){
//
//    }

}
